---
import IndexPage from "../../../components/docs/indexPage.astro";
import { SIDEBAR, type Frontmatter } from "../../../config";
import { getLanguageFromURL } from "../../../languages";
import Layout from "../../../layouts/docs.astro";

const frontmatter: Frontmatter = {
  title: "Despliegue",
  layout: "docs",
  description: "Aprende a desplegar tu aplicación T3 a producción.",
};

const lang = getLanguageFromURL(Astro.url.pathname);
const sidebarEntries = SIDEBAR[lang]["Deployment"]!;
const files = await Astro.glob("./*.{md,mdx,astro}");
---

<Layout frontmatter={frontmatter} headings={[]}>
  <IndexPage
    frontmatter={frontmatter}
    sidebarEntries={sidebarEntries}
    files={files}
  />
</Layout>
